<?php include('layout/header.php'); ?>
<?php

if (isset($_GET['ava'])) {
    if ($_GET['ava'] == 'shoppingcart') {
        echo '<div class="main_content">';
        echo '<div class="what"><span class="text4">Shopping cart</span></div>';
        echo '<div class="blue">';
        include('include/inc_shoppingcart.php');
        echo '<div class="clear"></div>';
        echo '</div>';
        echo '<div class="clear"></div>';
        echo '</div>';
    }

    if ($_GET['ava'] == 'list') {
        if (isset($_POST['txttimkiem'])) {
            $timkiem = $_POST['txttimkiem'];
            echo '<div class="main_content">';
            echo '<div class="what"><span class="text4">SẢN PHẨM TÌM KIẾM</span></div>';
            echo '<div class="blue">';
            include('include/inc_timkiem.php');
            echo '<div class="clear"></div>';
            echo '</div>';
            echo '<div class="clear"></div>';
            echo '</div>';
        } else {
            echo '<div class="main_content">';
            echo '<div class="what"><span class="text4">SẢN PHẨM TÌM KIẾM</span></div>';
            echo '<div class="blue">';
            echo "Bạn chưa nhập từ khóa tìm kiếm!!!";
            echo '<div class="clear"></div>';
            echo '</div>';
            echo '<div class="clear"></div>';
            echo '</div>';
        }
    } else if ($_GET['ava'] == 'listnc') {
        if ($_POST['gia'] != 'gia' && $_POST['nhanhieu'] != 'nhanhieu') {
            $gia = $_POST['gia'];
            $nhanhieu = $_POST['nhanhieu'];
            echo '<div class="main_content">';
            echo '<div class="what"><span class="text4">SẢN PHẨM TÌM KIẾM NÂNG CAO</span></div>';
            echo '<div class="blue">';
            include('include/inc_timkiemnangcao.php');
            echo '<div class="clear"></div>';
            echo '</div>';
            echo '<div class="clear"></div>';
            echo '</div>';
        } else {
            echo '<div class="main_content">';
            echo '<div class="what"><span class="text4">SẢN PHẨM TÌM KIẾM</span></div>';
            echo '<div class="blue">';
            echo "Bạn chưa nhập giá trị tìm kiếm nâng cao!!!";
            echo '<div class="clear"></div>';
            echo '</div>';
            echo '<div class="clear"></div>';
            echo '</div>';
        }
    } else if ($_GET['ava'] == 'contactus') {
        echo '<div class="main_content">';
        echo '<div class="what"><span class="text4">LIÊN HỆ VỚI CHÚNG TÔI</span></div>';
        echo '<div class="blue">';
        include('include/inc_lienhe.php');
        echo '<div class="clear"></div>';
        echo '</div>';
        echo '<div class="clear"></div>';
        echo '</div>';
    }
} else {
    if (isset($_GET['id'])) {
        echo '<div class="main_content">';
        echo '<div class="what"><span class="text4">THÔNG TIN SẢN PHẨM</span></div>';
        echo '<div class="blue">';
        include('include/inc_chitietsanpham.php');
        echo '<div class="clear"></div>';
        echo '</div>';
        echo '<div class="clear"></div>';
        echo '</div>';
    } else {
        echo '<div class="main_content">';
        echo '<div class="what"><span class="text4">SẢN PHẨM MỚI</span></div>';
        echo '<div class="blue">';
        include('include/sanphammoi.php');
        echo '<div class="clear"></div>';
        echo '</div>';
        echo '<div class="clear"></div>';
        echo '</div>';
    }
}
?>
<?php include('layout/footer.php'); ?>

